<?php
session_start();
if($_SERVER['HTTP_REFERER'] !='http://localhost/nb158jk/session_form/d.php') {
  header("location:a.php");
}
$_SESSION['data'] = array_merge($_POST,$_SESSION['data']);
echo '<pre>';
print_r($_SESSION);
